import pygame.gfxdraw
import sys
# draw抗锯齿图案
def gfxdraw():
    winx = 300
    winy = 300
    screen = pygame.display.set_mode((winx,winy))

    while True:
        #弧线
        pygame.gfxdraw.arc(screen,50,50,30,0,180,(255,255,255))
        # 描边扇形
        pygame.gfxdraw.pie(screen,50,90,30,45,135,(170, 238, 187))
        # 填充的圆形
        pygame.gfxdraw.filled_circle(screen,130,90,30,(170, 238, 187))
        pygame.display.update()
        for e in pygame.event.get():
            if e.type == pygame.QUIT:
                pygame.quit()
                sys.exit()

if __name__ == '__main__':
    gfxdraw()